package Controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Properties;

@WebServlet(urlPatterns = {"/index"})
public class IndexController extends HttpServlet {
    private static String PublicPath = "/WEB-INF/views";
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Properties properties = System.getProperties();
        req.setAttribute("properties",properties);
        req.getRequestDispatcher(PublicPath + "/index.jsp").forward(req,resp);
    }
}
